﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SCRS.Model;
/// <summary>
/// 订单明细
/// </summary>
[Table("SYS_ORDER_DETAIL")]
public class OrderDetail
{
    /// <summary>
    /// 明细ID
    /// </summary>
    [Key]
    [Column("ID")]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public int Id { get; set; }
    /// <summary>
    /// 订单编号
    /// </summary>
    [Column("ORDER_ID")]
    public string OrderId { get; set; }
    /// <summary>
    ///  商品编号
    /// </summary>
    [Column("COMMODITY_ID")]
    public string CommodityId { get; set; }
    /// <summary>
    /// 商品数量
    /// </summary>
    [Column("COMMODITY_NUM")]
    public int CommodityNum { get; set; }
    /// <summary>
    /// 商品单价
    /// </summary>
    [Column("COMMODITY_PRICE")]
    public decimal CommodityPrice { get; set; }
    /// <summary>
    /// 实付金额
    /// </summary>
    [Column("PAYMENT")]
    public decimal Payment { get; set; }
}